ig.module(
	'game.entities.base.pickObject'
)
.requires(
	'impact.entity',
	'impact.image',
        'game.entities.base.pickableType'
)
.defines(function()
{
    EntityPickObject = EntityPickableType.extend(
    {
        size: {x:43, y:27},
	collides: ig.Entity.COLLIDES.ACTIVE,
        animSheet: new ig.AnimationSheet('media/pickInside/texture_whiteSheep.png', 43, 27),
        bounciness:1,	
	
        init: function(x, y, settings)
        {
	    this.parent(x, y, settings);
	    
            this.addAnim('Idle', 1, [0]);
            
            this.vel.x = Math.random() * 10 + 65;
            this.vel.y = Math.random() * 10 + 65;
	    
	    var number = Math.random() * 2;
	    if (number == 1)
	    {
		this.vel.x = -this.vel.x;
	    }
        },
        
	update: function()
	{
	    this.parent();    
	},
	
        onPick: function()
        {
            this.parent();            
        }        
    });
});